import json
import requests


def sendDingDing(msg):
    print(msg)
    headers = {'Content-Type': 'application/json'}
    webhook = 'https://oapi.dingtalk.com/robot/send?access_token=d4aa2071c8999b2bffc439f8d6554829b439736d8899c927fa9df244f61e34bb'
    data = {
        "msgtype": "text",
        "text": {
            "content": msg + '\n'
        },
        "at": {
            "atMobiles": [
            ],
            "isAtAll": False
        }
    }

    requests.post(url=webhook, data=json.dumps(data), headers=headers)
